<%= stylesheet_link_tag "set_photo", :media => "screen" %>
<div class="pop" id="pop_set_photo" style="display: none">
  <div class="set_photo_cont bg_5">
    <div class="nav_box">
      <div class="nav_div bg_4 bor_r_2">
        <h5 class="sand_img">使用自选头像</h5>
        <h6 class="slect_img">1、选择图片</h6>
        <p class="nav_tag"><button id="from_space_botton" class="bg_5 bor_t_2 bor_b_2 c_3">从空间相册上传</button>
          <button class="bg_4 c_3" id="from_local_botton">从本地电脑上传</button>
        </p>
        <h6 class="edit_img bor_b_2">2、编辑图片</h6>
      </div>
    </div>
    <div class="choose_photo">
      <div class="select_phot">
        <select>
          <% for album in current_accounts.albums %>
            <option value="<%= album[:id] %>"><%= album[:name] %></option>
          <% end %>
        </select>
        <span>只能选择QQ空间公开相册</span>
      </div>
      <ul class="select_ul">
        <li>
          <a class="user_img_3" title="yanyan " href="#">
            <img src="http://a3.photo.store.qq.com/http_imgload.cgi?/rurl4_s=81d293489ac9e4eaec5772c7aeceaa6c2c3bbd4b4764ef0307dd276b61fbb1ff586874ae6a124e165a00d510d36db062cd67a9400846a37b300781f0af8e926c67f244d021afd9eb77f0adf0b94f6ce68fcd3eeb&amp;a=3&amp;b=3 " alt="yanyan "/>
          </a>
          <span class="checked_img"><sup>选中</sup></span>
        </li>
      </ul>
    </div>
    <div class="photo_content" style="display: none">
      <p class="choose_p">选一张电脑里的图片：</p>
      <div class="input_img">
        <% form_for(:avatar, :url => { :action => "create" }, :html => { :multipart => true, :id => 'local_upload_form' }) do |form| %>
          <%= form.file_field :uploaded_data %>
        <% end %>
      </div>
      <p class="img_type">• 支持jpg、png、gif格式的图片<br/>• 图片最大支持2M</p>
    </div>
  </div>
  <div class="btn bg_2 bor_t_2">
    <button class="bt1_4em" id="upload_photo_ok">确认</button>
    <button class="bt1_4em" id="upload_photo_cancel">取消</button>
  </div>
</div>